<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
	$(function(){
		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
		$("#name").formValidator({onshow:"<?php echo L("input").L('app_name')?>",onfocus:"<?php echo L("input").L('app_name')?>",oncorrect:"<?php echo L('input_right');?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('app_name')?>"});	
	})
//-->
</script>
<div class="pad-lr-10">
<form action="?m=admin&c=appmemu&a=edit&id=<?=$id?>" method="post" id="myform">
	<table width="100%"  class="table_form">
  <tr>
    <th width="120"><?php echo L('app_name')?>：</th>
    <td class="y-bg"><input type="text" class="input-text" name="app[name]" id="name" value="<?=$info['name']?>" size="30" /></td>
  </tr>
  <tr>
    <th><?php echo L('image_url')?>：</th>
    <td class="y-bg"><?php echo form::images('app[image_url]', 'image_url',$info['image_url'], 'subject', '', 30)?></td>
  </tr>
  <tr>
    <th><?php echo L('image_selected_url')?>：</th>
    <td class="y-bg"><?php echo form::images('app[image_selected_url]', 'image_selected_url',$info['image_selected_url'], 'subject', '', 30)?></td>
  </tr>
  <tr>
    <th width="120"><?php echo L('config_id')?>：</th>
    <td class="y-bg"><input type="text" class="input-text" name="app[config_id]" size="30" value="<?=$info['config_id']?>"/></td>
  </tr>
  <tr>
    <th width="120"><?php echo L('user_type')?>：</th>
    <td class="y-bg">
      <?php echo form::radio(array('1'=>'普通用户','2'=>'模特','3'=>'经纪人','4'=>'商户'),$info['user_type'],' name = "app[user_type]" ')?>
    </td>
  </tr>
  <tr>
    <th width="120"><?php echo L('is_selected')?>：</th>
    <td class="y-bg">
      <?php echo form::radio(array('0'=>'否','1'=>'是'),$info['is_selected'],' name = "app[is_selected]" ')?>
    </td>
  </tr>
</table>
<div class="bk15"></div>
    <input type="submit" class="dialog" id="dosubmit" name="dosubmit" value="<?php echo L('submit');?>" />
</form>
</div>
<script language="JavaScript">

</script>
</body>
</html>